<?php
namespace app\common\controller;
use app\post\model\Tag;
use think\Controller;
use think\Db;

/**
 * 后台公用继承控制器
 * Class Admin
 * @package app\common\controller
 */
class Admin extends Controller
{
    /**
     * ViewInitMiddeware : 初始化视图
     * CheckAuthMiddeware ：检测权限
     * AppMiddeware ：系统应用检测
     * @var array
     */
    protected $middleware=["ViewInitMiddeware","AppMiddeware","CheckAuthMiddeware"];
    public function initialize()
    {
        parent::initialize();
        $this->assign([
            "system" => get_option("system_setting")
        ]);
    }
}